/**
 * ...
 * @author Hatshepsout
 */

document.ready = function() {
	
	hideShow(".question", ".reponse");
	
}

function hideShow(clicked, description){
	$(description).hide();
	
	$(clicked).click( function( event ){
		var delimiteur = $(this).parent();
		
		$(description).fadeOut("slow");
		$(clicked).removeClass("active");
		$(this).addClass("active");
		$(description, delimiteur).fadeIn("slow");
		event.preventDefault();
	});
}